local Lua__dianji = fk.CreateSkill({
  name = "Lua__dianji",
  tags = {Skill.Compulsory}
})

Fk:loadTranslationTable{
  ["Lua__dianji"] = "电击",
  [":Lua__dianji"] = "锁定技，你受到的雷属性伤害+1；当你受到雷属性伤害时，你摸X张牌。（X为伤害值）",
}

-- 雷属性伤害+1
Lua__dianji:addEffect(fk.DamageInflicted, {
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(Lua__dianji.name) and data.damageType == fk.ThunderDamage
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:notifySkillInvoked(player, Lua__dianji.name, "offensive")
    
    data.damage = data.damage + 1
    player:drawCards(data.damage, Lua__dianji.name)
    return false
  end,
})

return Lua__dianji 